CXX = g++
CFLAGS = -std=c++11 -O2 -Wall -g 

TARGET = server
OBJS = ./code/log/*.cpp ./code/pool/*.cpp ./code/timer/*.cpp \
       ./code/http/*.cpp ./code/server/*.cpp \
       ./code/buffer/*.cpp ./code/main.cpp

all: $(OBJS)
    $(CXX) $(CFLAGS) $(OBJS) -o $(TARGET)  -pthread -lmysqlclient -L/usr/lib64/mysql

clean:
    rm -rf $(OBJS) $(TARGET)




